/*
 * @Description:
 * @Author: HuiSir<https://gitee.com/huisir001>
 * @Date: 2025-08-06 12:07:39
 * @LastEditTime: 2025-08-07 16:55:51
 */
import { defineFormOptions } from "@/components/TablePage/predefined";
import { filePositions } from "./useTableCols";

export default defineFormOptions(() => [
  {
    component: "input",
    key: "name",
    props: {
      placeholder: "请输入文件名称",
    },
  },
  {
    component: "select",
    key: "group",
    options: [],
    props: {
      placeholder: "请选择文件类目",
    },
  },
  {
    component: "select",
    key: "position",
    props: {
      placeholder: "请选择存储位置",
    },
    options: Object.keys(filePositions).map((key: string) => ({
      label: (filePositions as Record<string, string>)[key],
      value: key,
    })),
  },
  {
    component: "date-picker",
    key: "createTime",
    props: {
      type: "date",
      placeholder: "请选择创建日期",
    },
  },
]);
